import i18n from '@/language/index'

export const t = i18n.global.t

export default function OperationLogFindModel(id, name,method,startTime,enTime,userId) {
    this.id = id;
    this.name = name;
    this.method = method;
    this.startTime = startTime;
    this.enTime = enTime;
    this.userId = userId;

    this.rules = {
        startTime: [
            {required: true, message: t('opLog.1'), trigger: 'blur'},
        ],
    }
}